Description: Calculate sum on a matrix or a multidimensional matrix. Syntax: msum(A, n) Note: An external library functimatrix, sum